﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using OperaHouse.Domain.News;

namespace OperaHouse.DAL.Mapping.News
{
    public partial class NewMap : EntityTypeConfiguration<NewsItem>
    {
        public NewMap()
        {
            this.ToTable("NewsItems");
            this.HasKey(c => c.Id);
            this.Property(u => u.Title);
            this.Property(u => u.Short);
            this.Property(u => u.Full);
            this.Property(u => u.Published);
            this.Property(u => u.CreatedOn);
        }
    }
}
